<?php
/**
 * Introduction: 收货地址表  harvest_address
 * @author: 王龙
 * @date: 2016/4/18 16:41
 * @email: wanglong@cdlinglu.com
 */

namespace Common\Model;


use Think\Model;

class HarvestAddressModel extends Model
{
    //定义数据库连接信息
    protected $connection;
    //定义模型字段
    protected $fileds = [
        'id',
        'recipient',
        'uid',
        'mobile',
        'province',
        'province_name',
        'city',
        'city_name',
        'county',
        'county_name',
        'is_default',
        'sex',
        'address',
        'create_time'
    ];
    //定义表名
    protected $tableName = 'harvest_address';

    /**
     * 初始化
     */
    public function _initialize()
    {
        $this->connection = C('Databaese');
    }
}